package com.rongmai.db.mapper;

import com.rongmai.db.model.FinanceProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【finance_product(金融产品)】的数据库操作Mapper
* @createDate 2024-02-03 15:29:54
* @Entity com.rongmai.db.model.FinanceProduct
*/
public interface FinanceProductMapper {

    int deleteByPrimaryKey(Long id);

    int insert(FinanceProduct record);

    int insertSelective(FinanceProduct record);

    FinanceProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FinanceProduct record);

    int updateByPrimaryKey(FinanceProduct record);

    List<FinanceProduct> queryByCompanyId(Integer companyId);

    List<FinanceProduct> queryByDepartmentId(Integer departmentId);

    List<FinanceProduct> queryByProductName(String name);

    void deleteByCompanyIdAndDepartmentId(@Param("companyId") Integer companyId, @Param("departmentAuditId") Integer departmentAuditId);
}
